<?php
session_start();
include("settings.php");

if($_SESSION["bejelentkezve"] == 1) {} else {
$_SESSION["badlogin"] = 1;
header("Location: access-denied.php");
}

$mysql_conn = mysql_connect($sql_host, $sql_user, $sql_pass);
$db_select = mysql_select_db($sql_db, $mysql_conn);

$user = trim(htmlspecialchars(mysql_real_escape_string($_SESSION["user"])));
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; utf-8" />
<title>Vote</title>
<link rel="shortcut icon" href="style/images/favicon.png" type="image/png" />
</head>
<body>
<p>
<font size="5" face="Comic Sans MS" color="yellow">
<b>
Üdv kedves - Hi dear <?php echo $_SESSION["user"]; ?>!
<?php
/*
NOTE: IDE lehet rakni szövegeket, üdvözlést, infókat, stb... , <br> el tudtok sortörést csinálni, valamint 
<?php echo $_SESSION["user"]; ?> -val tudjátok kiírni a bejelentkező felhasználó nevét
Például:
Helló <?php echo $_SESSION["user"]; ?> !
<br>Ez a mi vote panelünk.
<br>újsor
*/
$accid_query = mysql_query("SELECT username FROM authme where username='$user' LIMIT 1");
$accid = mysql_result($accid_query, 0);
$lekeres = mysql_query("SELECT katt FROM votepanel WHERE accid = '$user' LIMIT 1");
$count = mysql_result($lekeres, 0);
$lekeres_a = mysql_query("SELECT balance FROM iConomy WHERE username = '$user' LIMIT 1");
$crd = mysql_result($lekeres_a, 0);
?>
<br>Kattintásaid száma - Count of your clicks: <?php echo $count; ?>
<br>Kreditjeid száma - Count of your credits: <?php echo $crd; ?>
<table border="<?php echo $border; ?>" bgcolor="white">
<tr>
<td>
Hirdetés
</td>
<td>
Utolsó szavazás
</td>
<td>
Link
</td>
</tr>
<tr>
<td>
Fanatik-TopSite
</td>
<td>
<?php
$time_q = mysql_query("SELECT time1 FROM votetime WHERE accid='$user'");
echo date('Y-m-d H:m:s', mysql_result($time_q, 0));
?>
</td>
<td>
<a href="click1.php"><img src="http://fanatik-topsite.clanbazis.com/button.php?u=boss74" alt="Fanatik-TopSite" border="0" />
</a>
</a>
<tr>
<td>
World of Warriors Toplista
</td>
<td>
<?php
$accid_query = mysql_query("SELECT username FROM authme where username='$user' LIMIT 1");
$accid = mysql_result($accid_query, 0);
$time_q = mysql_query("SELECT time2 FROM votetime WHERE accid='$user'");
echo date('Y-m-d H:m:s', mysql_result($time_q, 0));
?>
</td>
<td>
<a href="click2.php">
<img src="http://topwarriors.manhelm.hu/button.php?u=neferset74" alt="World of Warriors Toplista" border="0" /></a></a>
</td>
</tr>
</table>
<br>
<a href="logout.php">Kijelentkezés</a>
</font>
</body>
</html>
